<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');
    $router->resource('info/users', UserController::class);
    $router->resource('info/ymx', YmxController::class);
    $router->resource('info/smt', SmtController::class);
    $router->resource('info/lazada', LazadaController::class);
    $router->resource('info/ebay', EbayController::class);
    $router->resource('info/enterpriseinfo', EnterpriseinfoController::class);
    $router->resource('info/email', EmailController::class);
    $router->resource('info/mobilecard', MobilecardController::class);
    $router->resource('info/creditcard', CreditcardController::class);
    $router->resource('info/alipay', AlipayController::class);
    $router->resource('info/facebook', FacebookController::class);
    $router->resource('info/ip', IpController::class);
    $router->resource('info/paypal', PaypalController::class);

    $router->resource('info/operationlog', OperationlogController::class);


});

//$router->resource('users', UserController::class);